<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<div class="row">
	<div class="col-lg-12 col-sm-12 col-xs-12">
		<div class="widget">
			<div class="widget-header bordered-bottom theme">
				<span class="widget-caption">公告表-${(editModel=='add')?string('新增','编辑')}</span>
				<div class="widget-buttons">
					<a href="#" data-toggle="collapse">
						<i class="fa fa-minus"></i>
					</a>
					<a href="#" data-toggle="maximize">
						<i class="fa fa-expand"></i>
					</a>
				</div>
			</div>
			<div class="widget-body">
				<div class="row">
					<form class="editForm" action="${saveUrl}" method="post" responseType="JSON" role="form" id="editForm_${serializeNum}"
						data-bv-submitButtons="#editFormSubmitBtn_${serializeNum}"
						data-bv-message="This value is not valid"
						data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
						data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
						data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
							<input type="hidden" name="id" value="${editEntity.id}">
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="title" class="col-sm-2 control-label no-padding-right">公告标题</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid" size="100" name="title" alt="公告标题" id="title" placeholder="公告标题" type="text" title="公告标题" class="form-control"  value="${editEntity.title}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<label class="col-xs-4 nopadding-left nopadding-right" style="margin-bottom: 10px;">
									<label style="width: 95px;text-align: center"><span style="color: red">*</span>接收对象：</label>
									<label>
										<select class="form-select-1 acceptObject" name="acceptObject" id="acceptObject" style="width:160px;height: 30px;border: 1px solid #c6d5d8;border-radius: 4px !important;">
											<@dictionary groupCode="acceptObject";dics>
											<#list dics as dic>
												<#if editEntity.acceptObject == dic.code>
												<option value="${dic.code}" selected="selected">${dic.value}</option>
												<#else>
												<option value="${dic.code}">${dic.value}</option>
												</#if>
											</#list>
											</@dictionary>
										</select>
									</label>
								</label>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="form-group">
								<label for="container" class="col-sm-2 control-label">公告内容：</label>
								<div class="col-sm-8">
									<script id="container" name="content" type="text/plain"></script>
									<script type="text/javascript" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/ueditor.config.js"></script>
									<script type="text/javascript" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/editor_api.js"></script>
									<script type="text/javascript" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/ueditor.all.js"></script>
									<script type="text/javascript" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/third-party/zeroclipboard/ZeroClipboard.js"></script>
									<script type="text/javascript" charset="utf-8" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/lang/zh-cn/zh-cn.js"></script>
									<script type="text/javascript">
										var ue = UE.getEditor('container');
										var lang = ue.getOpt('lang'); //默认返回：zh-cn
									</script>
								</div>
							</div>
							</#if>
						<div class="col-sm-12">
							<input type="button" class="btn btn-default" data-dismiss="modal" value="返回" />
							<button type="submit" class="btn btn-blue" id="editFormSubmitBtn_${serializeNum}">保存</button>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="assets/js/validation/bootstrapValidator_init.js"></script>
<script>
$(".selectpicker_${serializeNum}").select2();
</script>